package datasv.collegeQuery_datasv;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

import po.CollegeConsularPO;
import po.CollegePO;
import po.CollegeStudentListPO;
import po.CollegeTeacherListPO;
import po.StudentPO;
import po.TeacherPO;
import resultmessage.CollegeQueryRM;

public interface CollegeQueryDatasv extends Remote {
	public List<CollegePO> getCollegeList() throws RemoteException;
//	public CollegeMemberPO getCollege(String collegeID,MemberType memberType) throws RemoteException;
	public CollegeTeacherListPO getCollegeTeachers(String collegeID) throws RemoteException;
	public CollegeStudentListPO getCollegeStudents(String collegeID) throws RemoteException;
	
	public CollegeQueryRM addTeacher(String collegeID,TeacherPO po) throws RemoteException;
	public CollegeQueryRM deleteTeacher(String collegeID, String teacherID) throws RemoteException;
	public CollegeQueryRM addStudent(String collegeID, StudentPO po) throws RemoteException;
	public CollegeQueryRM deleteStudent(String collegeID,  String studentID) throws RemoteException;
	public CollegeQueryRM addCourse(String collegeID, String courseName, String courseID) throws RemoteException;
	public CollegeQueryRM deleteCourse(String collegeID, String courseID) throws RemoteException;
	public CollegeQueryRM addCollegeConsular(String collegeID, CollegeConsularPO po) throws RemoteException;
	public CollegeQueryRM deleteCollegeConsular(String collegeID, String collegeConsularID) throws RemoteException;
	
	public List<String> getCouOfCollege(String collegeID) throws RemoteException;
	
	public List<TeacherPO> getCollegeTeacherPOList(String collegeID) throws RemoteException;
	public List<StudentPO> getCollegeStudentPOList(String collegeID) throws RemoteException;
}
